package com.gxa.jjty.core.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Table(name = "bill")
public class InAndOut {
    @ApiModelProperty(value = "支出")
    @Column(name = "expend")
    private Double expend;
    @Column(name = "income")
    @ApiModelProperty(value = "收入")
    private Double income;
    @Column(name = "rise_time")
    @ApiModelProperty(value = "生成时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd  ")
    @JsonFormat(pattern = "yyyy-MM-dd ")
    private Date riseTime;

}
